﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Drawing;

namespace Clandestine.Entities
{
    public class Teleport : Trigger
    {
        private string destinationMap = string.Empty;
        public string DestinationMap
        {
            get { return destinationMap; }
            set { destinationMap = value; }
        }
        private string destinationEntrance = string.Empty;
        public string DestinationEntrance 
        {
            get { return destinationEntrance; }
            set { destinationEntrance = value; }
        }

        public override bool Solid
        {
            get { return false; }
        }

        public override void Dispose()
        {
            // Don't need to do anything really...
        }

        public override GLColor EditorColor
        {
            get { return new GLColor(1f, 1f, 1, 0.3f); }
        }

        public override void OnCollide(int playerXPos, int playerYPos)
        {
            WorldMap.ChangeLevel(DestinationMap, DestinationEntrance);
        }
    }
}
